|
In object-oriented programming, a class implementation file is often used to contain the implementation code for the method(s) of a class. This file is also referred to as a source file. Programming languages like C and C++ make use of these implementation files so as to separate the interface and implementation of these methods. 〔 〕 ==Motivation== Using this structure, a class definition file containing the declaration of the class and its members is also created. If the class definition has been included and the implementation file for its methods is available, the user can instantiate an object of the class. The purpose of this structure is to keep the implementation code hidden, but allow the user to view the design. 〔 〕 〔 〕 Users make use of the public interface of an object so as to make creating objects as simple as possible, ensuring that client code does not distract the user with unnecessary details of the class's implementation. 〔 〕 This allows the user the information needed to use the class effectively, but prevents him or her from damaging the compiled code. 〔 〕 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Class implementation file」の詳細全文を読む スポンサード リンク
|